package com.example.lib_http

import okhttp3.Interceptor
import okhttp3.Response
import retrofit2.Retrofit

class TokenRetrofitImpl:BaseRetrofitImpl() {
    override fun createRetrofit(): Retrofit {
        val httpBuilder = createOkHttpBuilder()
        httpBuilder
            .addInterceptor(object :Interceptor{
                override fun intercept(chain: Interceptor.Chain): Response {
                    val builder = chain.request().newBuilder().addHeader("token", "")
                    return chain.proceed(builder.build())

                }

            })
        return createRetrofit(httpBuilder.build())
    }
}